﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Listing.Master" Inherits="System.Web.Mvc.ViewPage<Documents.web.Models.PatientListModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>
<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/Presenters/PatientListPresenter.js" type="text/javascript"></script>
</asp:Content> 

<asp:Content ID="Content3" ContentPlaceHolderID="cphTopContent" runat="server">
 <div class="roundedbox clearfix">
  <span id="boxlogo" class="floatleft"></span>
 <h1 class="pagetitle logoonleft floatleft">Welsh Clinical Portal : <span><%= Model.Title %></span></h1>
 </div>
</asp:Content>

<asp:Content ContentPlaceHolderID="cphNavigation" runat="server">
            <ul class="tabs clearfix">
                <li><%= Html.RouteLink("Workspace", new { controller = "Home", action = "Dashboard" })%></li>
                <li>Alerts and Warnings</li>
                <li class="selected"><%= Html.RouteLink("Clinical Documents", new { controller = "Home", action = "DocumentsPage" })%> </li>
                <li>Medicines Transcribing</li>
                <li>Radiology</li>
                <li>Pathology</li>
                <li>Urology</li>
            </ul>
</asp:Content>


<asp:Content ID="Content4" ContentPlaceHolderID="cphLeftColumn" runat="server">
  <div class="roundedbox clearfix">
<% Html.RenderPartial("LocationDropdownList", Model.Locations); %>
    <script type="text/javascript">
        var eventHub = new EventHub();
        var patientListPresenter = new PatientListPresenter(eventHub);
        patientListPresenter.RegisterEventListeners();    
    </script>
  </div>
 
 <script type="text/javascript">

     $("#careeventtoggle").click(function() {
         if ($("#careeventlist").hasClass("notvisible")) {
             $("#careeventlist").slideDown("fast");
             $("#careeventlist").removeClass("notvisible");
             $("#careeventlist").addClass("visible");
         }
         else {
             $("#careeventlist").slideUp("fast");
             $("#careeventlist").addClass("notvisible");
             $("#careeventlist").removeClass("visible");
         };
     });


     $("#alldocumentstoggle").click(function() {
     if ($("#alldocumentlist").hasClass("notvisible")) {
             $("#alldocumentlist").slideDown("fast");
             $("#alldocumentlist").removeClass("notvisible");
             $("#alldocumentlist").addClass("visible");
         }
         else {
             $("#alldocumentlist").slideUp("fast");
             $("#alldocumentlist").addClass("notvisible");
             $("#alldocumentlist").removeClass("visible");
         };
     });
 </script>
 
</asp:Content>


<asp:Content ID="Content5" ContentPlaceHolderID="cphSingleList" runat="server">
<div id="PatientLists">
  <% Html.RenderPartial("PatientLists", Model); %>

</div>
</asp:Content>

